package com.olddriver.crm.mapper;
import org.apache.ibatis.annotations.Param;
import com.olddriver.crm.domain.Department;
import com.olddriver.crm.query.QueryObject;

import java.util.List;


public interface DepartmentMapper {
    int insert(@Param("department") Department department);

    int update(@Param("department") Department department);

    List<Department> find();

    int queryTotal(QueryObject qo);

    List<Department> queryRows(QueryObject qo);

    void updateState(@Param("state") Boolean state, @Param("id") Long id);
}
